package 异常.day1.demo7;

public class Test {
    public static void main1(String[] args) {
        Cake c1=new Cake(1);
        Cake c2=new Cake(2);
        Cake c3=new Cake(3);
        Cake c4=new Cake(4);

        c1=c2=c3=c4=null;
        System.gc();

        System.out.println("=========");
    }

    public static void main(String[] args) {
        for(long i=0;i<10000000;i++){
            new Cake(i);
        }
    }
}
